mvn clean package jboss-as:deploy
Make sure that your GateIn Portal instance is running.
Open a command line and navigate to the root directory of your portlet project.
Type this command to build and deploy the archive:
mvn clean package jboss-as:deploy
To deploy to other than default localhost:9999 JBoss instance, copy the following configuration
just after <version>${jboss.as.plugin.version}</version> in the pom.xml file and adjust it to suit your needs.
Note that <username> and <password> elements can be omitted sometimes, depending on your JBoss security settings.
<configuration>
<hostname>127.0.0.1</hostname>
<port>9999</port>
<username>admin</username>
<password>secret</password>
</configuration>
To be able to see a freshly deployed portlet in action, you need to import it and add it to a page.